package com.red.star.wechat.data.mappers;

import com.red.star.wechat.data.core.base.MyMapper;
import com.red.star.wechat.data.entity.MallExpand;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Xucan
 * @Description:欢迎语Mapper
 * @create 2018-03-26 13:06
 **/
public interface MallExpandMapper extends MyMapper<MallExpand> {

    List<MallExpand> findAllWelcom(MallExpand mallExpand);

    @Select(value = "select * from t_mall_expand t where t.mall_code = #{mallCode}")
    public MallExpand findEffectiveOne(String mallCode);

    void changeMallWelcomStatusById(@Param("id") Integer id, @Param("status") Integer status);

    void updateMallWelcom(MallExpand mallExpand);
}
